package com.cskaoyan.bean.goods.wx;

import com.cskaoyan.bean.po.MarketCategory;
import lombok.Data;

import java.util.List;

/**
 * ClassName: WxGoodsCategoryData
 * Description:
 * date: 2022/6/9 10:11
 *
 * @author bruce
 * @since JDK 8
 */
@Data
public class WxGoodsCategoryData {
    private MarketCategory currentCategory;
    private MarketCategory parentCategory;
    private List<MarketCategory> brotherCategory;

    public static WxGoodsCategoryData data(MarketCategory currentCategory,MarketCategory parentCategory,List<MarketCategory> brotherCategory) {
        WxGoodsCategoryData wxGoodsCategoryData = new WxGoodsCategoryData();
        wxGoodsCategoryData.setCurrentCategory(currentCategory);
        wxGoodsCategoryData.setParentCategory(parentCategory);
        wxGoodsCategoryData.setBrotherCategory(brotherCategory);
        return wxGoodsCategoryData;
    }
}
